﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Visual/Template/padrao.master" AutoEventWireup="true" CodeFile="inbox.aspx.cs" Inherits="Visual_Messages_inbox" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link href="../../Styles/interfacemetro/css/modern-responsive.css" rel="stylesheet"
        type="text/css" />
    <link href="../../Styles/interfacemetro/css/modern.css" rel="stylesheet" type="text/css" />
    <link href="../../Styles/menustyles.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="header" Runat="Server">
<h1>In Box</h1>
    <br />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ConteudoDinamico" Runat="Server">

<div>
<a class="shortcut" href="sendmessage.aspx">
        <span class="icon">
            <i class="icon-new"></i>
        </span>
        <span class="label">
            New Message
        </span>   
    </a>
</div>


    <div class="table hovered ">
    <asp:GridView ID="GridMessages" runat="server" AllowPaging="True" 
        DataSourceID="DSMessages" AutoGenerateColumns="False" AllowSorting="True" 
            Width="475px" onselectedindexchanged="selecionarmensagem">
        <Columns>
            <asp:CommandField SelectImageUrl="~/Visual/Imagens/left_round.png" 
                SelectText="Read" ShowSelectButton="True" />
            <asp:BoundField DataField="id" HeaderText="ID" />
            <asp:BoundField DataField="title" HeaderText="Title" />
            <asp:BoundField DataField="login" HeaderText="User" />
            <asp:BoundField DataField="date" HeaderText="Date" />
        </Columns>
    </asp:GridView>
    <asp:ObjectDataSource ID="DSMessages" runat="server" SelectMethod="select" 
        TypeName="VSDBM.Code.dao.MessageDAO">
        <SelectParameters>
            <asp:Parameter DefaultValue="true" Name="campsjoin" Type="Boolean" />
            <asp:Parameter DefaultValue="" Name="filters" Type="String" />
            <asp:Parameter DefaultValue=" ORDER BY messages.id DESC" Name="orderby" Type="String" />
        </SelectParameters>

    </asp:ObjectDataSource>
    </div>
</asp:Content>

